// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.sec.android.app.calculator;

import android.app.Activity;
import android.content.ContentResolver;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.database.ContentObserver;
import android.graphics.Typeface;
import android.media.AudioManager;
import android.os.Bundle;
import android.os.Handler;
import android.text.*;
import android.view.*;
import android.widget.EditText;
import com.sec.android.widgetapp.calculator.Panel;
import java.util.Hashtable;

// Referenced classes of package com.sec.android.app.calculator:
//            EventListener, EventHandler, Persist, History

public class Calculator extends Activity
    implements android.view.View.OnClickListener, android.view.View.OnLongClickListener, android.view.View.OnTouchListener
{
    public class CustomContentObserver extends ContentObserver
    {

        public void onChange(boolean flag)
        {
            checkOrientation();
            super.onChange(flag);
        }

        final Calculator this$0;

        public CustomContentObserver()
        {
            this$0 = Calculator.this;
            super(new Handler());
        }
    }


    public Calculator()
    {
        int ai[] = new int[35];
        ai[0] = 0x7f04001a;
        ai[1] = 0x7f040016;
        ai[2] = 0x7f040017;
        ai[3] = 0x7f040018;
        ai[4] = 0x7f040012;
        ai[5] = 0x7f040013;
        ai[6] = 0x7f040014;
        ai[7] = 0x7f04000e;
        ai[8] = 0x7f04000f;
        ai[9] = 0x7f040010;
        ai[10] = 0x7f04001b;
        ai[11] = 0x7f04001c;
        ai[12] = 0x7f04001d;
        ai[13] = 0x7f040015;
        ai[14] = 0x7f040011;
        ai[15] = 0x7f04000c;
        ai[16] = 0x7f04000b;
        ai[17] = 0x7f04000a;
        ai[18] = 0x7f04000d;
        ai[19] = 0x7f040019;
        ai[20] = 0x7f04001e;
        ai[21] = 0x7f04001f;
        ai[22] = 0x7f040020;
        ai[23] = 0x7f040021;
        ai[24] = 0x7f040023;
        ai[25] = 0x7f040025;
        ai[26] = 0x7f040024;
        ai[27] = 0x7f040022;
        ai[28] = 0x7f040026;
        ai[29] = 0x7f040027;
        ai[30] = 0x7f040028;
        ai[31] = 0x7f040029;
        ai[32] = 0x7f04002a;
        ai[33] = 0x7f04002b;
        ai[34] = 0x7f04002c;
        bt_id = ai;
    }

    private void initControls()
    {
        mDisplay = (EditText)findViewById(0x7f040005);
        mHistoryScreen = (EditText)findViewById(0x7f040004);
        mPanel = (Panel)findViewById(0x7f040006);
        mListener = new EventListener();
        mLogic = new EventHandler(this, mDisplay, mHistoryScreen, mHistory);
        registerForContextMenu(mDisplay);
        registerForContextMenu(mHistoryScreen);
        clipboard = (ClipboardManager)getSystemService("clipboard");
        mListener.setHandler(mLogic, mPanel, mDisplay, mHistoryScreen, mHistory);
        mPanel.setOnPanelListener(mListener);
        mDisplay.setOnTouchListener(this);
        mDisplay.setOnLongClickListener(this);
        mHistoryScreen.setOnTouchListener(this);
        mHistoryScreen.setOnLongClickListener(this);
        for(int i = 0; i < bt_id.length; i++)
        {
            View view = findViewById(bt_id[i]);
            view.setOnTouchListener(this);
            view.setOnClickListener(this);
            view.setSoundEffectsEnabled(false);
            if(view == findViewById(0x7f04000d))
                view.setOnLongClickListener(mListener);
        }

        initTrueFont();
    }

    private void initTrueFont()
    {
        Typeface typeface = Typeface.createFromAsset(getAssets(), "fonts/GS45_EU_TouchWiz.ttf");
        mDisplay.setTypeface(typeface);
        mHistoryScreen.setTypeface(typeface);
    }

    public void button_image_change(View view, int i)
    {
        int j = 0;
        (new int[1])[j] = 0;
        int k;
        int ai[];
        Hashtable hashtable;
        Integer integer;
        if(getResources().getConfiguration().orientation == 2)
            k = i + 2;
        else
            k = i;
        k;
        JVM INSTR tableswitch 1 4: default 60
    //                   1 61
    //                   2 242
    //                   3 390
    //                   4 673;
           goto _L1 _L2 _L3 _L4 _L5
_L1:
        return;
_L2:
        ai = new int[20];
        ai[0] = 0x7f02005f;
        ai[1] = 0x7f020061;
        ai[2] = 0x7f020063;
        ai[3] = 0x7f020065;
        ai[4] = 0x7f020067;
        ai[5] = 0x7f020069;
        ai[6] = 0x7f02006b;
        ai[7] = 0x7f02006d;
        ai[8] = 0x7f02006f;
        ai[9] = 0x7f020071;
        ai[10] = 0x7f020014;
        ai[11] = 0x7f020016;
        ai[12] = 0x7f020012;
        ai[13] = 0x7f020010;
        ai[14] = 0x7f02000e;
        ai[15] = 0x7f02000c;
        ai[16] = 0x7f02000a;
        ai[17] = 0x7f020008;
        ai[18] = 0x7f020006;
        ai[19] = 0x7f020004;
_L7:
        hashtable = new Hashtable();
        for(; j < ai.length; j++)
            hashtable.put(Integer.valueOf(bt_id[j]), Integer.valueOf(j));

        break; /* Loop/switch isn't completed */
_L3:
        ai = new int[20];
        ai[0] = 0x7f02005e;
        ai[1] = 0x7f020060;
        ai[2] = 0x7f020062;
        ai[3] = 0x7f020064;
        ai[4] = 0x7f020066;
        ai[5] = 0x7f020068;
        ai[6] = 0x7f02006a;
        ai[7] = 0x7f02006c;
        ai[8] = 0x7f02006e;
        ai[9] = 0x7f020070;
        ai[10] = 0x7f020013;
        ai[11] = 0x7f020015;
        ai[12] = 0x7f020011;
        ai[13] = 0x7f02000f;
        ai[14] = 0x7f02000d;
        ai[15] = 0x7f02000b;
        ai[16] = 0x7f020009;
        ai[17] = 0x7f020007;
        ai[18] = 0x7f020005;
        ai[19] = 0x7f020003;
        continue; /* Loop/switch isn't completed */
_L4:
        ai = new int[35];
        ai[0] = 0x7f020056;
        ai[1] = 0x7f020048;
        ai[2] = 0x7f02004a;
        ai[3] = 0x7f02004c;
        ai[4] = 0x7f02003a;
        ai[5] = 0x7f02003c;
        ai[6] = 0x7f02003e;
        ai[7] = 0x7f02002c;
        ai[8] = 0x7f02002e;
        ai[9] = 0x7f020030;
        ai[10] = 0x7f020058;
        ai[11] = 0x7f02005a;
        ai[12] = 0x7f02005c;
        ai[13] = 0x7f020040;
        ai[14] = 0x7f020032;
        ai[15] = 0x7f020022;
        ai[16] = 0x7f020020;
        ai[17] = 0x7f02001e;
        ai[18] = 0x7f020024;
        ai[19] = 0x7f02004e;
        ai[20] = 0x7f02001a;
        ai[21] = 0x7f020018;
        ai[22] = 0x7f02001c;
        ai[23] = 0x7f020026;
        ai[24] = 0x7f020028;
        ai[25] = 0x7f02002a;
        ai[26] = 0x7f020034;
        ai[27] = 0x7f020036;
        ai[28] = 0x7f020038;
        ai[29] = 0x7f020042;
        ai[30] = 0x7f020044;
        ai[31] = 0x7f020046;
        ai[32] = 0x7f020050;
        ai[33] = 0x7f020052;
        ai[34] = 0x7f020054;
        continue; /* Loop/switch isn't completed */
_L5:
        ai = new int[35];
        ai[0] = 0x7f020055;
        ai[1] = 0x7f020047;
        ai[2] = 0x7f020049;
        ai[3] = 0x7f02004b;
        ai[4] = 0x7f020039;
        ai[5] = 0x7f02003b;
        ai[6] = 0x7f02003d;
        ai[7] = 0x7f02002b;
        ai[8] = 0x7f02002d;
        ai[9] = 0x7f02002f;
        ai[10] = 0x7f020057;
        ai[11] = 0x7f020059;
        ai[12] = 0x7f02005b;
        ai[13] = 0x7f02003f;
        ai[14] = 0x7f020031;
        ai[15] = 0x7f020021;
        ai[16] = 0x7f02001f;
        ai[17] = 0x7f02001d;
        ai[18] = 0x7f020023;
        ai[19] = 0x7f02004d;
        ai[20] = 0x7f020019;
        ai[21] = 0x7f020017;
        ai[22] = 0x7f02001b;
        ai[23] = 0x7f020025;
        ai[24] = 0x7f020027;
        ai[25] = 0x7f020029;
        ai[26] = 0x7f020033;
        ai[27] = 0x7f020035;
        ai[28] = 0x7f020037;
        ai[29] = 0x7f020041;
        ai[30] = 0x7f020043;
        ai[31] = 0x7f020045;
        ai[32] = 0x7f02004f;
        ai[33] = 0x7f020051;
        ai[34] = 0x7f020053;
        if(true) goto _L7; else goto _L6
_L6:
        integer = (Integer)hashtable.get(Integer.valueOf(view.getId()));
        if(integer != null)
            view.setBackgroundResource(ai[integer.intValue()]);
        if(true) goto _L1; else goto _L8
_L8:
    }

    public void checkOrientation()
    {
        if(android.provider.Settings.System.getInt(getContentResolver(), "accelerometer_rotation", 0) != 1) goto _L2; else goto _L1
_L1:
        setRequestedOrientation(4);
_L4:
        return;
_L2:
        switch(getResources().getConfiguration().orientation)
        {
        case 1: // '\001'
            setRequestedOrientation(1);
            break;

        case 2: // '\002'
            setRequestedOrientation(0);
            break;
        }
        if(true) goto _L4; else goto _L3
_L3:
    }

    public void onClick(View view)
    {
        review = view;
        mListener.onClick(view);
    }

    public boolean onContextItemSelected(MenuItem menuitem)
    {
        View view = getCurrentFocus();
        if(view != null) goto _L2; else goto _L1
_L1:
        boolean flag1 = false;
_L4:
        return flag1;
_L2:
        if(view.getId() == 0x7f040005 || view.getId() == 0x7f040004)
            break; /* Loop/switch isn't completed */
        flag1 = false;
        if(true) goto _L4; else goto _L3
_L3:
        mLogic.showCursor();
        EditText edittext;
        int i;
        int j;
        if(view.getId() == 0x7f040004)
            edittext = mHistoryScreen;
        else
            edittext = mDisplay;
        i = mLogic.getCursor(edittext, true);
        j = mLogic.getCursor(edittext, false);
        if(menuitem.getItemId() != 0x1020028 && menuitem.getItemId() != 0x1020029)
            mLogic.setSelecting(false);
        switch(menuitem.getItemId())
        {
        case 16908323: 
        case 16908324: 
        case 16908325: 
        case 16908326: 
        case 16908327: 
        default:
            flag1 = false;
            break;

        case 16908319: 
            Selection.setSelection(edittext.getText(), 0, edittext.getText().length());
            mLogic.setSelecting(true);
            flag1 = true;
            break;

        case 16908328: 
            if(mLogic.isMultiSelection(edittext))
                edittext.setSelection(edittext.getSelectionEnd());
            mLogic.onShift(edittext, true);
            flag1 = true;
            break;

        case 16908329: 
            mLogic.onShift(edittext, false);
            edittext.setSelection(edittext.getSelectionEnd());
            mLogic.goneCursor();
            flag1 = true;
            break;

        case 16908321: 
            String s3;
            if(i == j)
                s3 = edittext.getText().toString();
            else
                s3 = edittext.getText().toString().substring(i, j);
            local_clip = s3;
            clipboard.setText(local_clip);
            edittext.dispatchKeyEvent(new KeyEvent(1, 59));
            edittext.setSelected(false);
            mLogic.goneCursor();
            flag1 = true;
            break;

        case 16908320: 
            String s2;
            if(i == j)
                s2 = edittext.getText().toString();
            else
                s2 = edittext.getText().toString().substring(i, j);
            local_clip = s2;
            if(i == j)
                edittext.setText("");
            else
                edittext.getText().replace(i, j, "");
            clipboard.setText(local_clip);
            mLogic.goneCursor();
            mLogic.mEnterEnd = false;
            flag1 = true;
            break;

        case 16908322: 
            if(mDisplay.getText().toString().contains("="))
                mLogic.onClear();
            boolean flag;
            StringBuilder stringbuilder;
            String s;
            int k;
            String s1;
            if(mDisplay.getText().toString().length() > 0)
                flag = true;
            else
                flag = false;
            mLogic.setFrontText(mDisplay.getText().toString());
            stringbuilder = new StringBuilder();
            s = clipboard.getText().toString();
            k = s.indexOf("=");
            if(k > 0 && flag)
                s1 = clipboard.getText().toString().substring(0, k - 1);
            else
                s1 = s;
            stringbuilder.append(s1);
            mLogic.mPaste = true;
            mLogic.insert(stringbuilder);
            mLogic.goneCursor();
            mLogic.mEnterEnd = false;
            flag1 = true;
            break;
        }
        if(true) goto _L4; else goto _L5
_L5:
    }

    public void onCreate(Bundle bundle1)
    {
        super.onCreate(bundle1);
        android.net.Uri uri = android.provider.Settings.System.CONTENT_URI;
        customObserver = new CustomContentObserver();
        customObserver.onChange(true);
        getContentResolver().registerContentObserver(uri, true, customObserver);
        mPersist = new Persist(this);
        bundle = new Bundle();
        mHistory = mPersist.history;
        mAudioManager = (AudioManager)getSystemService("audio");
        setContentView(0x7f030000);
        initControls();
        if(bundle1 != null)
        {
            int i = bundle1.getInt("mStart");
            int j = bundle1.getInt("mEnd");
            mLogic.mEnterEnd = bundle1.getBoolean("mEnterEnd");
            boolean flag = bundle1.getBoolean("mPanelState");
            EditText edittext;
            int k;
            if(flag)
                edittext = mDisplay;
            else
                edittext = mHistoryScreen;
            if(!flag)
            {
                mPanel.getContent().setVisibility(8);
                mPanel.getHandle().setBackgroundDrawable(mPanel.getClosedHandle());
                mListener.onPanelClosedForConfig();
            }
            mLogic.setmCursorState(bundle1.getBoolean("mCursorState"));
            edittext.setCursorVisible(bundle1.getBoolean("mCursorState"));
            edittext.setText(mLogic.changeColor(bundle1.getString("String")));
            k = edittext.getText().toString().length();
            if(i > k)
                i = k;
            if(j > k)
                j = k;
            if(i == j)
            {
                mLogic.goneCursor();
            } else
            {
                bundle.putInt("mStart", i);
                bundle.putInt("mEnd", j);
                bundle.putBoolean("isSelecting", bundle1.getBoolean("isSelecting"));
            }
        }
    }

    public void onCreateContextMenu(ContextMenu contextmenu, View view, android.view.ContextMenu.ContextMenuInfo contextmenuinfo)
    {
        if(view.getId() == 0x7f040005 || view.getId() == 0x7f040004)
        {
            EditText edittext;
            String s;
            String s1;
            if(view.getId() == 0x7f040004)
                edittext = mHistoryScreen;
            else
                edittext = mDisplay;
            if(mLogic.isSelecting() || mLogic.isMultiSelection(edittext))
                mLogic.showCursor();
            contextmenu.removeItem(0x1020022);
            contextmenu.removeItem(0x1020024);
            contextmenu.removeItem(0x102002a);
            contextmenu.removeItem(0x1020021);
            contextmenu.removeItem(0x1020020);
            contextmenu.removeItem(0x102001f);
            contextmenu.removeItem(0x1020028);
            contextmenu.removeItem(0x1020029);
            s = local_clip.toString();
            s1 = clipboard.getText().toString();
            if(edittext.length() > 0)
            {
                contextmenu.add(0, 0x102001f, 0, 0x7f050011);
                int k;
                int l;
                if(mLogic.isSelecting())
                    k = 0x1020029;
                else
                    k = 0x1020028;
                if(mLogic.isSelecting())
                    l = 0x7f050013;
                else
                    l = 0x7f050012;
                contextmenu.add(0, k, 0, l);
            }
            if(view.getId() == 0x7f040005 && edittext.length() > 0)
            {
                int j;
                if(edittext.getSelectionStart() != edittext.getSelectionEnd())
                    j = 0x7f05000f;
                else
                    j = 0x7f05000e;
                contextmenu.add(0, 0x1020020, 0, j);
            }
            if(edittext.length() > 0)
            {
                int i;
                if(edittext.getSelectionStart() != edittext.getSelectionEnd())
                    i = 0x7f05000d;
                else
                    i = 0x7f05000c;
                contextmenu.add(0, 0x1020021, 0, i);
            }
            if(view.getId() == 0x7f040005 && s.length() > 0 && s1.length() > 0 && s.equals(s1))
                contextmenu.add(0, 0x1020022, 0, 0x7f050010);
            super.onCreateContextMenu(contextmenu, view, contextmenuinfo);
        }
    }

    public boolean onCreateOptionsMenu(Menu menu)
    {
        mLogic.goneCursor();
        menu.add(0, 1, 0, 0x7f050014).setIcon(0x7f020077);
        menu.add(0, 3, 0, 0x7f05000a).setIcon(0x7f020075);
        menu.add(0, 2, 0, 0x7f05000b).setIcon(0x7f020076);
        return super.onCreateOptionsMenu(menu);
    }

    public void onDestroy()
    {
        super.onDestroy();
    }

    public boolean onKeyDown(int i, KeyEvent keyevent)
    {
        if(82 == i && (keyevent.isLongPress() || keyevent.getRepeatCount() > 0))
            closeOptionsMenu();
        return super.onKeyDown(i, keyevent);
    }

    public boolean onLongClick(View view)
    {
        EditText edittext;
        if(view.getId() == 0x7f040004)
            edittext = mHistoryScreen;
        else
            edittext = mDisplay;
        if(!mLogic.getmCursorState())
            edittext.setSelection(edittext.getSelectionEnd());
        mLogic.setLongClick(true);
        return false;
    }

    public boolean onOptionsItemSelected(MenuItem menuitem)
    {
        menuitem.getItemId();
        JVM INSTR tableswitch 1 3: default 32
    //                   1 34
    //                   2 51
    //                   3 59;
           goto _L1 _L2 _L3 _L4
_L1:
        return true;
_L2:
        mLogic.onHisClear();
        mLogic.goneCursor();
        continue; /* Loop/switch isn't completed */
_L3:
        setRequestedOrientation(1);
        continue; /* Loop/switch isn't completed */
_L4:
        setRequestedOrientation(0);
        if(true) goto _L1; else goto _L5
_L5:
    }

    public void onPause()
    {
        super.onPause();
        mPersist.save();
        if(clipboard.hasText())
            clipboard.setText(clipboard.getText().toString());
    }

    public boolean onPrepareOptionsMenu(Menu menu)
    {
        byte byte0;
        byte byte1;
        int i = android.provider.Settings.System.getInt(getContentResolver(), "accelerometer_rotation", 0);
        int j = getResources().getConfiguration().orientation;
        if(mLogic.isSelecting())
            mLogic.setSelecting(false);
        MenuItem menuitem = menu.findItem(1);
        boolean flag;
        if(mLogic.isDisplayScreen() || mLogic.isHistoryScreen())
            flag = true;
        else
            flag = false;
        menuitem.setVisible(flag);
        if(i != 0)
            break MISSING_BLOCK_LABEL_165;
        j;
        JVM INSTR tableswitch 1 1: default 108
    //                   1 156;
           goto _L1 _L2
_L1:
        byte0 = 2;
        byte1 = 3;
_L3:
        menu.findItem(byte0).setVisible(true);
        menu.findItem(byte1).setVisible(false);
_L4:
        return super.onPrepareOptionsMenu(menu);
_L2:
        byte0 = 3;
        byte1 = 2;
          goto _L3
        menu.findItem(3).setVisible(false);
        menu.findItem(2).setVisible(false);
          goto _L4
    }

    public void onResume()
    {
        super.onResume();
        boolean flag;
        int i;
        int j;
        int k;
        boolean flag1;
        if(android.provider.Settings.System.getInt(getContentResolver(), "dtmf_tone", 1) == 1)
            flag = true;
        else
            flag = false;
        mDTMFToneEnabled = flag;
        i = bundle.getInt("mReview");
        j = bundle.getInt("mStart", 0);
        k = bundle.getInt("mEnd", 0);
        flag1 = bundle.getBoolean("isSelecting", false);
        if(i != 0 && bundle.getInt("mOrientation") == getResources().getConfiguration().orientation)
        {
            review = findViewById(i);
            button_image_change(review, 2);
            bundle.clear();
        }
        if(mDisplay != null && mDisplay.length() != 0)
        {
            String as[] = mDisplay.getText().toString().split("=");
            if(as.length > 1)
            {
                mDisplay.setText(mLogic.changeColor((new StringBuilder()).append(as[0].trim()).append("=").toString()));
                mLogic.onEnter(false);
            }
        }
        if(flag1)
        {
            EditText edittext1;
            int l;
            if(mPanel.isOpen())
                edittext1 = mDisplay;
            else
                edittext1 = mHistoryScreen;
            l = edittext1.getText().length();
            if(l > j && l >= k)
            {
                Selection.setSelection(edittext1.getText(), j, k);
                mLogic.onShift(edittext1, true);
            }
        } else
        {
            EditText edittext;
            if(mDisplay.getVisibility() == 0)
                edittext = mDisplay;
            else
                edittext = mHistoryScreen;
            mLogic.onShift(edittext, false);
            edittext.setSelection(edittext.getSelectionEnd());
            mLogic.goneCursor();
        }
    }

    protected void onSaveInstanceState(Bundle bundle1)
    {
        bundle1.putBoolean("mPanelState", mPanel.isOpen());
        bundle1.putBoolean("mEnterEnd", mLogic.isCheckResult());
        bundle1.putBoolean("mCursorState", mLogic.getmCursorState());
        bundle1.putBoolean("isSelecting", mLogic.isSelecting());
        Bundle bundle2 = bundle;
        int i;
        EventHandler eventhandler;
        EditText edittext;
        EventHandler eventhandler1;
        EditText edittext1;
        String s;
        if(review != null)
            i = review.getId();
        else
            i = 0;
        bundle2.putInt("mReview", i);
        bundle.putInt("mOrientation", getResources().getConfiguration().orientation);
        eventhandler = mLogic;
        if(mPanel.isOpen())
            edittext = mDisplay;
        else
            edittext = mHistoryScreen;
        bundle1.putInt("mStart", eventhandler.getCursor(edittext, true));
        eventhandler1 = mLogic;
        if(mPanel.isOpen())
            edittext1 = mDisplay;
        else
            edittext1 = mHistoryScreen;
        bundle1.putInt("mEnd", eventhandler1.getCursor(edittext1, false));
        if(mPanel.isOpen())
            s = mDisplay.getText().toString();
        else
            s = mHistoryScreen.getText().toString();
        bundle1.putString("String", s);
        super.onSaveInstanceState(bundle1);
    }

    public void onStop()
    {
        super.onStop();
    }

    public boolean onTouch(View view, MotionEvent motionevent)
    {
        if(view.getId() != 0x7f040005 && view.getId() != 0x7f040004)
            mLogic.goneCursor();
        if(view.getId() != 0x7f040005 && view.getId() != 0x7f040004) goto _L2; else goto _L1
_L1:
        if(motionevent.getAction() == 1)
        {
            EditText edittext;
            if(view.getId() == 0x7f040004)
                edittext = mHistoryScreen;
            else
                edittext = mDisplay;
            if(!mLogic.isSelecting() && (!mLogic.isMultiSelection(edittext) || !mLogic.isLongClick()))
                mLogic.goneCursor();
            if(mLogic.isLongClick())
                mLogic.setLongClick(false);
        }
_L4:
        return false;
_L2:
        switch(motionevent.getAction())
        {
        case 0: // '\0'
            onVibrator(view);
            if(mDTMFToneEnabled)
            {
                int i = mAudioManager.getRingerMode();
                if(i != 0 || i == 1)
                    mAudioManager.playSoundEffect(5);
            }
            button_image_change(view, 1);
            mLogic.delst = true;
            review = view;
            break;

        case 1: // '\001'
            button_image_change(view, 2);
            mLogic.delst = false;
            break;
        }
        if(true) goto _L4; else goto _L3
_L3:
    }

    public void onVibrator(View view)
    {
        view.setHapticFeedbackEnabled(true);
        view.performHapticFeedback(9);
    }

    private static String local_clip = "";
    private final int CMD_ADVANCED_PANEL = 3;
    private final int CMD_BASIC_PANEL = 2;
    private final int CMD_CLEAR_HISTORY = 1;
    private int bt_id[];
    private Bundle bundle;
    private ClipboardManager clipboard;
    private CustomContentObserver customObserver;
    private AudioManager mAudioManager;
    boolean mDTMFToneEnabled;
    private EditText mDisplay;
    private History mHistory;
    private EditText mHistoryScreen;
    private EventListener mListener;
    private EventHandler mLogic;
    private Panel mPanel;
    private Persist mPersist;
    private View review;

}
